#ifndef DATAINFO_H
#define DATAINFO_H

#include <QObject>
#include <QDebug>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QString>
#include "qmqtt_client.h"
#include "globalval.h"

class DataInfo : public QObject
{
    Q_OBJECT
public:
    explicit DataInfo(QObject *parent = 0);
    ~DataInfo();
    void inparse(QByteArray);//反序列化
    void publishMessage(QJsonObject);  //发送信息
    void fanJsonParse(QByteArray); //mainwindow历史数据反序列化
    //void xuLieParse();

signals:
    void keyValueOut(int,QString);
    void hisTemSignal(int,QString);
    void hisHumSignal(int,QString);

public slots:
};

#endif // DATAINFO_H
